package edu.Pta;

import java.util.Scanner;

public class EmployeeTest {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        Manager manager = new Manager();
        Salesman salesman = new Salesman();
        Worker worker = new Worker();
        manager.getSalary(scan.nextInt());
        salesman.getSalary(scan.nextInt(),scan.nextInt());
        worker.getSalary(scan.nextInt(),scan.nextInt());
    }
}

abstract class Employee{
    void getSalary(){
    }
}

class Manager extends Employee{
    public void getSalary(int salary){
        System.out.println(salary);
    }
}

class Salesman extends Employee{
    public void getSalary(int salary,int award){
        System.out.println(salary+award);
    }

}

class Worker extends Employee{
    public void getSalary(int day,int salary){
        System.out.println(day*salary);
    }
}

